package product;

import java.sql.Types;

import org.hibernate.dialect.SQLServerDialect;
import org.hibernate.type.StandardBasicTypes;

public class MySqlServerDialect  extends SQLServerDialect {
	public MySqlServerDialect() {
		super();
		//对应hbibernate里面的数据类型，否则映射不正确！
		registerHibernateType(Types.NVARCHAR, StandardBasicTypes.STRING.getName());
		registerHibernateType(Types.LONGVARCHAR, StandardBasicTypes.TEXT.getName());
		//registerHibernateType(Types.DECIMAL, Hibernate.BIG_DECIMAL.getName());
		}
		}